home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / Internet / Deepnet Explorer 1.5.3 beta 1 / DE1530STD.EXE / Styles / dapalert.js < prev    next >
Encoding:
Text File  |  2005-07-08  |  971 b   |  44 lines

  1.  
  2. function jsToggleDisplay(id)
  3. {
  4.     var el = document.getElementById(id);
  5.     var display = el.style.display ? '' : 'none';
  6.     el.style.display = display;
  7. }
  8.  
  9. function jsSaveSecurity()
  10. {
  11.     var form = document.getElementById("form");
  12.     var sel;
  13.     for(var i=0;i<3;i++)
  14.        if(form.level[i].checked)
  15.          sel=form.level[i].value;
  16.     
  17.     var wp=document.getElementById("wp"+sel);
  18.     
  19.     var el = document.getElementById("level");
  20.     el.innerHTML=wp.value;
  21.     jsToggleDisplay("security");
  22.     document.form.submit();
  23. }
  24.  
  25. function jsReportPhishing(url)
  26. {
  27.     var urlx;
  28.     urlx="http://dap.phishspot.com/report.asp?urlx="+base64encode(url);
  29.     document.location.href=urlx;
  30. }
  31.  
  32. function jsPopup(url)
  33. {
  34.     var width,height;
  35.     var top,left;
  36.  
  37.     width=480;
  38.     height=300;
  39.  
  40.     left = (screen.width-width)/2;
  41.     top = (screen.height-height)/2;
  42.     window.open(url,'dap','width='+width+',height='+height+',left='+left+',top='+top+',resizable=1,scrollbars=1,toolbar=1,menubar=1,status=1');
  43. }
  44.